
package com.work.db.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.*;

@Entity
@Table(name = "RATE")
public class Rate extends BaseEntity implements Serializable {

	@Transient
	private static final long serialVersionUID = -3649454899694529571L;
	
	@Column(name = "ACTIVE")
	private Boolean active;
	
	@Column(name = "FROM_DAY")
	private Date fromDay;
	
	@Column(name = "TO_DAY")
	private Date toDay;

	@Column(name = "AMOUNT")
	private Double amount;

	@ManyToOne
	private Employer employer;

	public Rate()
	{
		super();
	}

	public Date getFromDay()
	{
		return fromDay;
	}

	public void setFromDay(Date fromDay)
	{
		this.fromDay = fromDay;
	}

	public Date getToDay()
	{
		return toDay;
	}

	public void setToDay(Date toDay)
	{
		this.toDay = toDay;
	}

	public Double getAmount()
	{
		return amount;
	}

	public void setAmount(Double amount)
	{
		this.amount = amount;
	}

	public Employer getEmployer()
	{
		return employer;
	}

	public void setEmployer(Employer employer)
	{
		this.employer = employer;
	}

}
